package org.issaclu.springbootmybatis.user.dto;

import org.issaclu.springbootmybatis.user.enums.Sex;

import java.util.Arrays;
import java.util.Date;

public class UserInfoDetail {

    // 以下属性来自 user_info表
    private String userId;
    private String userName;
    private int age;
    private String introductionText;
    private Date birthday;
    private byte[] avatar;

    // 以下属性的值来自 user_detail 表
    private long detailId;
    private int level;
    private Sex sex;

    public long getDetailId() {
        return detailId;
    }

    public void setDetailId(long detailId) {
        this.detailId = detailId;
    }

    public byte[] getAvatar() {
        return avatar;
    }

    public void setAvatar(byte[] avatar) {
        this.avatar = avatar;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Sex getSex() {
        return sex;
    }

    public void setSex(Sex sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getIntroductionText() {
        return introductionText;
    }

    public void setIntroductionText(String introductionText) {
        this.introductionText = introductionText;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    @Override
    public String toString() {
        return "UserInfoDetail{" +
                "userId='" + userId + '\'' +
                ", userName='" + userName + '\'' +
                ", age=" + age +
                ", introductionText='" + introductionText + '\'' +
                ", birthday=" + birthday +
                ", detailId=" + detailId +
                ", level=" + level +
                ", sex=" + sex +
                '}';
    }
}
